#include<iostream>
using namespace std;
//
//
//
//从下面交

class Ctriangle {
public:
	double x, y, z;
	Ctriangle(int a, int b, int c) :x(a), y(b), z(c) {}
	void display();
	double GetPerimeter();
	double GetArea();

};

void Ctriangle::display()
{
	cout << "Ctriangle:a=" << x << ",b=" << y << ",c=" << z << endl;
}

double Ctriangle::GetPerimeter()
{
	return x + y + z;
}

double Ctriangle::GetArea()
{
	double p = (x + y + z) / 2;
	return sqrt((p - x) * (p - y) * (p - z) * p);
}


//交到这里为止住
//
//
//
//
//

int main() {
	double a, b, c;
	cin >> a >> b >> c;
	Ctriangle T(a, b, c);
	T.display();
	cout << "Perimeter:" << T.GetPerimeter() << endl;
	cout << "Area:" << T.GetArea() << endl;
	return 0;
}